/**
 * Created by zhengxiaofeng on 2018/1/9.
 */
export const native ={
/*  setToken:function() {
    if (!this.isOnMobile()) {
      localStorage.setItem("token","fdsfsfsfsdf")
    } else {
      cordova.exec((token) => {
        localStorage.setItem("token",token)
      }, null, "commonPlugin", "getToken", []);
    }
  },*/
  onBack:function() {
    if(!this.isOnMobile()){
      return;
    }else{
      cordova.exec(null, null, "commonPlugin", "onback", []);
    }
  },
  isOnMobile:function(){
    return "undefined" != typeof cordova;
  }
}

